package com.designpattern.TemplateMethodPattern;

/**
 * @Author yp
 * @Date 2021-05-26
 * @Description 模板方法模式-->测试类
 **/

public class Test {
    public static void main(String[] args) {

        AbstractService service = new ConcreteServiceImplA();
        service.show();

        AbstractService service1 = new ConcreteServiceImplB();
        service1.show();
    }

}
